﻿CREATE TABLE [account].[AccountCateryMapping] (
    [AccountCateryMappingPath]  [sys].[hierarchyid] NOT NULL,
    [AccountCateryMappingLevel] AS                  ([AccountCateryMappingPath].[GetLevel]()) PERSISTED,
    [AccountCateryId]           SMALLINT            NOT NULL,
    [AccountHierarchyId]        SMALLINT            NOT NULL,
    PRIMARY KEY CLUSTERED ([AccountCateryMappingPath] ASC) WITH (ALLOW_PAGE_LOCKS = ON, ALLOW_ROW_LOCKS = ON, PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF, STATISTICS_NORECOMPUTE = OFF)
);

